<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@page import="com.bci.pwtz.controller.AbstractController"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/user/common.jsp"%>
<%@ page import="com.bci.pwtz.mysql.model.Zykgz"%>
<%@ page import="com.bci.pwtz.mysql.model.Zypds"%>
<%@ page import="com.bci.pwtz.mysql.model.Zyhwg"%>
<%@ page import="com.bci.pwtz.mysql.model.Zydlfzx"%>
<%@ page import="com.bci.pwtz.mysql.model.Zyxsbdz"%>
<%@ page import="com.bci.pwtz.mysql.model.Zyxl"%>
<%@page import="com.bci.pwtz.service.ZyxlService"%>
<%@page import="com.bci.pwtz.service.ZykgzService"%>
<%@page import="com.bci.pwtz.service.ZypdsService"%>
<%@page import="com.bci.pwtz.service.ZyhwgService"%>
<%@page import="com.bci.pwtz.service.ZyxsbdzService"%>
<%@page import="com.bci.pwtz.service.ZydlfzxService"%>
<%@page import="com.bci.pwtz.service.ZyznblqService"%>
<%
	String deviceid = request.getParameter("deviceid");
	//String selecttype = request.getParameter("selecttype");
	int devicetype=Integer.valueOf(request.getParameter("devicetype"));
	ZykgzService zykgzService = (ZykgzService)SpringUtil.getBean("zykgzService");
	ZypdsService zypdsService = (ZypdsService)SpringUtil.getBean("zypdsService");
	ZyhwgService zyhwgService = (ZyhwgService)SpringUtil.getBean("zyhwgService");
	ZydlfzxService zydlfzxService = (ZydlfzxService)SpringUtil.getBean("zydlfzxService");
	ZyxsbdzService zyxsbdzService = (ZyxsbdzService)SpringUtil.getBean("zyxsbdzService");
	ZyxlService zyxlService = (ZyxlService)SpringUtil.getBean("zyxlService");
	Zyxl zyxl = new Zyxl();
	String devicename="";
	String stationtype="";
	if(devicetype==124){
	    Zykgz device=zykgzService.load(deviceid);
	    if(device!=null){
	        zyxl=zyxlService.load(device.getLinecode());
	        devicename="中压开关站";
	        stationtype="zykgz";
	    }
	}else if(devicetype==125){
	    Zypds device=zypdsService.load(deviceid);
	    if(device!=null){
	        zyxl=zyxlService.load(device.getLinecode());
	        devicename="中压配电室";
	        stationtype="zypds";
	    }
	}else if(devicetype==126){
	    Zyhwg device=zyhwgService.load(deviceid);
	    if(device!=null){
	        zyxl=zyxlService.load(device.getLinecode());
	        devicename="中压环网柜";
	        stationtype="zyhwg";
	    }
	}else if(devicetype==127){
	    Zyxsbdz device=zyxsbdzService.load(deviceid);
	    if(device!=null){
	        zyxl=zyxlService.load(device.getLinecode());
	        devicename="中压箱式变电站";
	        stationtype="zyxsbdz";
	    }
	}else if(devicetype==128){
	    Zydlfzx device=zydlfzxService.load(deviceid);
	    if(device!=null){
	        zyxl=zyxlService.load(device.getLinecode());
	        devicename="中压电缆分支箱";
	        stationtype="zydlfzx";
	    }
	}
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>配网数据-中压站内避雷器</title>
<link href="<%=basePath %>user/css/style.css" rel="stylesheet" type="text/css" />
<link href="<%=basePath %>user/css/llcss.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="<%=basePath %>js/jquery/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="<%=basePath %>user/js/hd_ll.js"></script>
<script type="text/javascript" src="<%=basePath %>user/js/common.js"></script>
<script type="text/javascript" src="<%=basePath %>user/z/js/zyznblqlist.js"></script>
</head>
<script type="text/javascript">
var parentDeviceId = "<%=deviceid%>";
var prentDeviceType =<%=devicetype%>;
</script>
<body bgcolor="white">
	<%@ include file="/user/head.jsp"%>
	<div class="pwsj_cont_box">
	<%@ include file="/user/left.jsp"%>
	<!-- 右侧内容_begin -->
	<%if(zyxl!=null){ %>
	<div class="pwsj_cont_right_box">
		<!-- 变压器_begin -->
		<div class="pwsj_right_byq">
			<div class="pwsj_right_byq_position">
			<a class="position" href="<%=basePath %>user/m/index.jsp">配网数据</a>&gt;
			<a class="position" href="<%=basePath %>user/z/bdzlist.jsp">变电站</a>&gt;
			<a class="position" href="<%=basePath %>user/z/zyxllist.jsp?deviceid=<%=zyxl.getStartsubstationcode() %>&devicetype=<%=zyxl.getDevicetype() %>">中压线路</a>&gt;
			<a class="position" href="<%=basePath %>user/z/<%=stationtype%>list.jsp?deviceid=<%=zyxl.getDeviceid() %>"><%=devicename %></a>
			<a class="right" href="<%=basePath %>user/z/<%=stationtype%>list.jsp?deviceid=<%=zyxl.getDeviceid()%>&t=<%=System.currentTimeMillis() %>">返回</a>
		</div>
			<!-- 变压器列表查询条件_begin -->
			<form action="" method="" type="" class="pwsj_byq_choose_form">
				<div class="pwsj_byq_choose">
					<div class='left'>
					<jsp:include page="/user/z/inc/zylevel4_2.jsp" flush="true" > 
			             <jsp:param name="selecttype" value="141" />
					</jsp:include>
						
						<%if(mediumaddaction||isSuper){ %>
						<a href="<%=basePath%>user/z/zyznblqadd.jsp?deviceid=<%=deviceid%>&devicetype=<%=devicetype%>">添加</a>
					<%}%>
					</div>
					<div class='right'>
						<input type="text" id="deviceName" name="devicename" maxlength="100" class="keywords" placeholder="请输入关键字搜索" />
						<input class="submit" type="button" onclick="goToPage(1)" value="搜索" />
					</div>
					<div class="clear"></div>
				</div>
			</form>
			<!-- 变压器列表查询条件_end -->

			<!-- 变压器列表查询结果_begin -->
			<div class="pwsj_right_byq_cont_title">
				<!-- 标题_begin -->
				<ul class="byq_title_ul">
					<li style="width:4%;"><input type="checkbox" class="checkbox" onclick="selectAll()"/></li>
					<li style="width:20%;">设备名称</li>
					<li style="width:20%;">所属线路</li>
					<li style="width:12%;">所属站房</li>
					<li style="width:12%;">型号</li>
					<li style="width:12%;">生产厂家</li>
					<li style="width:19%;">操作</li>
				</ul>
				<!-- 标题_end -->
				<!-- 结果_begin -->
				<div class="pwsj_right_byq_divbox">
				</div>				
				<!-- 结果_end -->
			</div>
			<!-- 变压器列表查询结果_end -->

			<!-- 分页列表_begin -->
			<div class="page_list_box">
				<!-- 左侧按钮_begin -->
				<div class="page_list_box_left">
				<%if(mediumeditaction||isSuper==true){ %>
						<a class="dels_btn" onclick="gobatchupdate(<%=AbstractController.中压站内避雷器 %>,this)">批量修改</a>
					<%}
					if(mediumdeleteaction||isSuper==true){
					%>
					<input class="dels_btn" onclick="batchdevicedel('zyznblq');" type="button" value="批量删除" />
					<%} %>
				</div>
				<!-- 左侧按钮_end -->
				<!-- 右侧分页_begin -->
				<div class="page_list_box_right">
					<div class="page">
			            <a >首页</a>
			            <a >上一页</a>
			            <a class="intro" >1</a>
			            <a >下一页</a>
			            <a >末页</a>
	    			</div>
				</div>
				<!-- 右侧分页_end -->
				<div class="clear"></div><!-- 清除左右浮动 -->
			</div>
			<!-- 分页列表_end -->
		</div>	
		<!-- 变压器_end -->
	</div>
	<!-- 右侧内容_end -->
	<%} %>
	<div class="clear"></div><!-- 清除左右浮动 -->

	</div>
	<!--main end-->
<%@ include file="/user/foot.jsp"%>
</body>
</html>